const express = require('express');

const adminRouter = express.Router();

adminRouter.get('/admin', (req, res) => {
    //req.query 获取解析get请求参数
    // 可直接获取admin ? name = 张三 & age=18后面的数据
    res.send(req.query)
})


adminRouter.post('/admin', (req, res) => {
    //req.body 
    
    res.send(req.body)
})

module.exports = adminRouter;